﻿using ReAnimation.MVP.ModelInterfaces;
using ReAnimation.MVP.ViewInterfaces;

namespace ReAnimation.MVP.Presenters
{
    public class ChooseMoleculePresenter: BasePresenter<IChooseMoleculeView>
    {
        private readonly IMainModel _mainModel;

        public ChooseMoleculePresenter(IMainModel mainModel)
        {
            _mainModel = mainModel;
        }

        protected override void InitView()
        {
            
        }

        void MoleculeSelectedHandler(object sender, System.EventArgs e)
        {
            _mainModel.CurrentMolecule = _view.CurrentSelectedMolecule;
            _view.Close();
        }
    }
}
